from django.http import HttpResponse
from google.appengine.api import users

def index(request):
    user = users.get_current_user();
    return HttpResponse("Welcome to brightsnake, " + user.nickname())

def logout(request):
    return HttpResponse("http://localhost:8080" + users.create_logout_url("/"))
